package com.hongtu.supplychain.finance.consumer.controller.client;

import com.hongtu.supplychain.finance.util.UserLoginInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Fu Chao on 2017/4/10.
 */
@FeignClient(value = "provider")
public interface UserClient {

    /***
     *
     * 根据User编号获取User信息
     *
     * @param userId
     * @return
     */
    @RequestMapping(value = "/hongtu/m/user/getById", method = RequestMethod.POST)
    UserLoginInfo getUserInfoById(@RequestParam("userId")Integer userId);
}
